<template>
	<view>
		<p>{{ title }}</p>
		<button @click="change">改变footer</button>
		<button @click="setList">Event Bus</button>
	</view>
</template>

<script>
	export default {
		name:"my-footer",
		props: {
			title: {
				type: String,
				required: true
			}
		},
		emits: ['changeFooter'],
		data() {
			return {
				
			};
		},
		methods: {
			change() {
				this.$emit('changeFooter', this.title + '!')
			},
			setList() {
				uni.$emit('getList', [1,2,3])
			}
		}
	}
</script>

<style>

</style>